#python 执行定时任务
# -*- coding: utf-8 -*-
from apscheduler.schedulers.blocking import BlockingScheduler

def job_function():
    print("Hello World")

sched = BlockingScheduler()
# Runs from Monday to Friday at 5:30 (am) until 2014-05-30 00:00:00
sched.add_job(job_function, 'cron', day_of_week='wed', hour=17, minute=14, end_date='2021-05-30')
sched.start()
